<style>
.jylabel-switch {padding:0.3rem 0.5rem;}
.jylabel-switch.active{
	border-radius:1.5rem;
	background-color:#00c568;
	color:#fff;
}
</style>
<div class='fui-page-group' ng-if="pagedata.op == 'main'">
<div class='fui-page fui-page-current'>
	<div class='fui-content'>
		<div class="fui-list-group merchgroup" style="background:{{main.syscolor || '#7c1cc9'}};margin-top:0">
			<div class="fui-list jump">
                <a class="fui-list-media">
                    <img class="round" src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/nopic.jpg'}}" />
                </a>
                <div class="fui-list-inner">
                    <div class="title" style="height:1.5rem;color:#f2f2f2">
					<i class="icon icon-dianpu" style="color:#f2f2f2"></i> {{pagedata.member.nickname || '匿名商户'}}
					</div>
					<div class="title" style="font-size:0.65rem;color:#f2f2f2">
						<span>总商品额:￥ <span class="f60">{{pagedata.all_money || '0.00'}}</span></span>
					</div>
                </div>
            </div>
		</div>
		<div class='jy-content'>
		<div class="fui-cell-group fui-cell-click mod-group radius" style="margin-top:0.5rem">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_liangoods/manage.worker_order/')">
								<div class="fui-cell-text bold">平台订单</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看平台订单</div>
							</a>
							<div class="fui-icon-group col-2 selecter">
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_liangoods/manage.worker_order/')">
									<div class="icon icon-green radius"><i class="icon icon-caifua"></i></div>
									<div class="text">今日订单额(￥{{pagedata.data.today_money || '0.00'}})</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_liangoods/manage.worker_order/')">
									<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
									<div class="text">今日单量(￥{{pagedata.data.today_num || '0.00'}})</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_liangoods/manage.worker_order/')">
									<div class="icon icon-green radius"><i class="icon icon-caifua"></i></div>
									<div class="text">总订单额(￥{{pagedata.data.all_money || '0.00'}})</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_liangoods/manage.worker_order/')">
									<div class="icon icon-green radius"><i class="icon icon-quanbudingdan"></i></div>
									<div class="text">总单量(￥{{pagedata.data.all_num || '0.00'}})</div>
								</a>
							</div>
		</div>
	</div>
	</div>
</div>
</div>
<div class="fe-floatright-bottom" style="bottom:5rem">
<a ng-if="pagedata.isopenvoice==1" ng-click="pagedata.isopenvoice=2;pagedata.openvoice(false)" href="javascript:;"><i class="icon icon-nolingsheng0"></i></a>
<a ng-if="pagedata.isopenvoice!=1" ng-click="pagedata.isopenvoice=1;pagedata.openvoice(true)" href="javascript:;"><i class="icon icon-lingsheng0"></i></a> 
</div>
<audio id="openvoice" controls preload="auto" style="display:none;">
	<source src="../core/resource/images/neworder.mp3"></source>
</audio>
<script>
scope.pagedata.openvoice=function(type){
	var voicetime = 0;
    var openvoice;
	if(type || scope.pagedata.isopenvoice==1){
		 openvoice = setInterval(() => {
			if(!scope.pagedata.isopenvoice){
				clearInterval(openvoice);
				return false;
			}
			scope.get('jy_liangoods/manage.index/getnew/',function(res){
						console.log('openvoice');console.log(res);
						if(res!='none'){
							if(!voicetime[res.id]){
								voicetime[res.id]=1;
								$("#openvoice")[0].play();
							}
						}
			});
		}, 5000);
	}else{
		scope.get('jy_liangoods/manage.index/setopenvoice/isopenvoice=0',function(res){});
	}
}
scope.pagedata.openvoice();
</script>